package com.citycloud.ccuap.tc.admin.entity;

import com.citycloud.ccuap.framework.service.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Version;
import org.springframework.data.mybatis.annotations.Column;
import org.springframework.data.mybatis.annotations.Condition;
import org.springframework.data.mybatis.annotations.Entity;
import org.springframework.data.mybatis.annotations.Id;
import org.springframework.data.mybatis.annotations.Id.GenerationType;
import org.springframework.data.repository.query.parser.Part;

/**
 * 项目（站点）菜单实体对象
 * @author sufeng
 *
 */
@Data
@NoArgsConstructor
@Entity(table = "sys_project_function")
public class SysProjectFunction implements Model {
	private static final long serialVersionUID = 1L;
	
	@Id(strategy = GenerationType.UUID)
	@Column(name = "prj_fun_id")
	@Condition(type = Part.Type.LIKE)
	private String prjFunId;
	
	@Column(name = "project_id")
	@Condition
	private Long projectId;
	
	@Column(name = "fun_id")
	@Condition(type = Part.Type.LIKE)
	private String funId;
	
	@Column(name = "fun_name")
	@Condition(type = Part.Type.LIKE)
	private String funName;
	
	@Column(name = "fun_type")
	@Condition
	private Short funType;
	
	@Column(name = "location")
	@Condition(type = Part.Type.LIKE)
	private String location;

	@Column(name = "help_url")
	@Condition(type = Part.Type.LIKE)
	private String helpUrl;

    @Column(name = "open_new")
    @Condition(type = Part.Type.LIKE)
    private Boolean openNew;
	
	@Column(name = "pid")
	@Condition(type = Part.Type.LIKE)
	private String pid;
	
	@Column(name = "order_no")
	@Condition
	private Long orderNo;
	
	@Column(name = "log_flag")
	@Condition
	private Short logFlag;
	
	@Column(name = "icon")
	@Condition(type = Part.Type.LIKE)
	private String icon;
	
	@Version
	@Column(name = "version")
	@Condition
	private Integer version;
	
	@Column(name = "remark")
	@Condition(type = Part.Type.LIKE)
	private String remark;
	
	@Column(name = "full_path")
	@Condition(type = Part.Type.LIKE)
	private String fullPath;
	


}